class OrderListModel{
  String order_id;
  String order_no;
  String order_number;
  String order_price;
  String order_total_price;
  String order_state;
  String create_time;
  String goods_id;
  String receipt_name;
  String receipt_phone;
  String receipt_address;
  String remark;
  String file_url;
  String logistics_no;
  String logistics_name;


  OrderListSku sku;
  OrderListMerchant goods;

  OrderListModel({this.order_id,this.order_no,this.order_number,this.order_price,this.order_total_price,
  this.order_state,this.create_time,this.goods_id,this.receipt_name,this.receipt_phone,this.receipt_address,
  this.remark,this.file_url,this.logistics_no,this.logistics_name,this.sku,this.goods});
  OrderListModel.fromJson(Map<String, dynamic> json) {
    order_id = json['order_id'];
    order_no = json['order_no'];
    order_number = json['order_number'];
    order_price = json['order_price'];
    order_total_price = json['order_total_price'];
    order_state = json['order_state'];
    create_time = json['create_time'];
    goods_id = json['goods_id'];
    receipt_name = json['receipt_name'];
    receipt_phone = json['receipt_phone'];
    receipt_address = json['receipt_address'];
    remark = json['remark'];
    file_url = json['file_url'];
    logistics_no = json['logistics_no'];
    logistics_name = json['logistics_name'];
    sku = json['sku'] != null
        ? new OrderListSku.fromJson(json['sku'])
        : null;
    goods = json['goods'] != null
        ? new OrderListMerchant.fromJson(json['goods'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data['order_id'] = this.order_id;
    data['order_no'] = this.order_no;
    data['order_number'] = this.order_number;
    data['order_price'] = this.order_price;
    data['order_total_price'] = this.order_total_price;
    data['order_state'] = this.order_state;
    data['create_time'] = this.create_time;
    data['goods_id'] = this.goods_id;
    data['receipt_name'] = this.receipt_name;
    data['receipt_phone'] = this.receipt_phone;
    data['receipt_address'] = this.receipt_address;
    data['remark'] = this.remark;
    data['file_url'] = this.file_url;
    data['logistics_no'] = this.logistics_no;
    data['logistics_name'] = this.logistics_name;
    if (this.sku != null) {
      data['sku'] = this.sku.toJson();
    }
    if (this.goods != null) {
      data['goods'] = this.goods.toJson();
    }
    return data;
  }
}
class OrderListSku{
  String sku_name;
  String sku_id;
  String sku_img_url;
  String spec_name;
  OrderListSku({this.sku_name,this.sku_id,this.sku_img_url,this.spec_name});
  OrderListSku.fromJson(Map<String, dynamic> json) {
    sku_name = json['sku_name'];
    sku_id = json['sku_id'];
    sku_img_url = json['sku_img_url'];
    spec_name = json['spec_name'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data['sku_name'] = this.sku_name;
    data['sku_id'] = this.sku_id;
    data['sku_img_url'] = this.sku_img_url;
    data['spec_name'] = this.spec_name;
    return data;
  }
}

class OrderListMerchant{
  String name;
  String merchant_name;
  String merchant_simple_name;
  String cont_phone;
  String merchant_id;
  String title;
  OrderListMerchant({this.name,this.merchant_name,this.merchant_simple_name,this.cont_phone,this.merchant_id,this.title});
  OrderListMerchant.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    merchant_name = json['merchant_name'];
    merchant_simple_name = json['merchant_simple_name'];
    cont_phone = json['cont_phone'];
    merchant_id = json['merchant_id'];
    title = json['title'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data['name'] = this.name;
    data['merchant_name'] = this.merchant_name;
    data['merchant_simple_name'] = this.merchant_simple_name;
    data['cont_phone'] = this.cont_phone;
    data['merchant_id'] = this.merchant_id;
    data['title'] = this.title;
    return data;
  }
}